import { onMounted, reactive } from "vue";

export function useLogin(){

    const user=reactive({ 
        username:"",
        password:""
    })

    const login=()=>{
        console.log("登录");
        
        console.log(user)
    }

    onMounted(() => {
      console.log("挂载生命周期函数");
      
    })

    return{
        user,login
    }


}